import request from '@/utils/request'

// 查询党员考核列表
export function listKaohe(query) {
  return request({
    url: '/system/kaohe/list',
    method: 'get',
    params: query
  })
}

// 查询党员考核详细
export function getKaohe(num) {
  return request({
    url: '/system/kaohe/' + num,
    method: 'get'
  })
}

// 新增党员考核
export function addKaohe(data) {
  return request({
    url: '/system/kaohe',
    method: 'post',
    data: data
  })
}

// 修改党员考核
export function updateKaohe(data) {
  return request({
    url: '/system/kaohe',
    method: 'put',
    data: data
  })
}

// 删除党员考核
export function delKaohe(num) {
  return request({
    url: '/system/kaohe/' + num,
    method: 'delete'
  })
}
